package concurrent.no4.n442;

/**
 * 〈一句话功能简述〉<br>
 * 〈〉
 *
 * @author dan shouyang
 * @create 2021/2/25
 * @since 1.0.0
 */
public class test1 {


    // 对当前对象加锁
//    public synchronized Object get(long mills) throws InterruptedException {
//        long future = System.currentTimeMillis() + mills;
//        long remaining = mills;
//        // 当超时大于0并且result返回值不满足要求
//        while ((result == null) && remaining > 0) {
//            wait(remaining);
//            remaining = future - System.currentTimeMillis();
//        }
//        return result;
//    }
}
